package dao;

import util.DBHelper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class PersonalCenterDao {
    // 用户 修改
    public int modifyUser(String uname, String phone,String email,String uid){
        String sql = "update shopping_user set uname = ?, phone = ?, email = ? where uid = ?";
        return DBHelper.update(sql,uname,phone,email,uid);
    }


    public List<Map<String,Object>> getname(String id){
        String sql = " select uname,email,phone from shopping_user where uid = ?";
        return DBHelper.selectListMap(sql,id);
    }

}
